<?php

namespace App\Models\Blog;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Photo extends Model
{
    use SoftDeletes;
    protected $guarded = [];

    protected $dates = ['deleted_at'];

    //照片属于相册
    public function gallery()
    {
        return $this->belongsTo('App\Models\Blog\Gallery');
    }

}
